package com.ky.course.service;

import com.ky.common.course.entity.Address;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ky.common.param.AddressAdd;
import com.ky.common.vo.R;

import java.util.List;

/**
 * <p>
 * 地址 服务类
 * </p>
 *
 * @author zpa
 * @since 2024-06-18
 */
public interface AddressService extends IService<Address> {

    List<Address> getAddressList(String token);

    boolean addAddress(String token, AddressAdd addAddress);

    boolean updateAddress(String token, AddressAdd addressAdd);

    boolean deleteAddress(String token, AddressAdd addressAdd);

    Address getByAddressId(String token, String id);

    R getDefaultAddress(String token);
}
